package Object_2;

import java.util.concurrent.Callable;

public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.setName("小猫");
        Dog dog = new Dog();
        dog.setName("小狗");

        dog.bark();
        dog.eat();
        dog.sleep();

        cat.bark();
        cat.eat();
        cat.sleep();
    }
}
